﻿{include file="public/header"}
<title>问题修改</title>
</head>
<body>

<style>
    .form-label{
        width: 15% !important;
    }
</style>
<article class="page-container">
    <form action="" method="post" class="form form-horizontal" >
        <div class="ch-row ch-info-form">
            <div class="flex1">验收项目：</div>
            <div class="flex3">
                <input type="text" name="title" class="title form-control" value="{$data.title}">
            </div>
        </div>
        <input type="hidden" name="id" class="title form-control" value="{$data.id}">
        <div class="ch-row ch-info-form">
            <div class="flex1">验收标准：</div>
            <div class="flex3">
                <textarea name="scesn" class="form-control">{$data.scesn}</textarea>
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">服务内容：</div>
            <div class="flex3">
                <textarea name="service_contents" class="form-control">{$data.service_contents}</textarea>
            </div>
        </div>

        <div class="ch-row">
            <div class="flex1">
                <button class="btn btn-primary radius" style="width: 100%;" type="button"><i class="Hui-iconfont">&#xe632;</i> 提交</button>
            </div>
        </div>
    </form>
</article>

{include file="public/footer"}
<script>
    $('.radius').click(function () {

        var src="{:Url('index/Warranty/edi')}";
            $.ajax({
                type: 'POST',
                url: src,
                dataType: 'json',
                data:$('form').serializeArray(),
                success: function (data) {
                    var res=JSON.parse(data);
                    if(res.code==200){


                        layer.closeAll();
                            window.parent.location.reload();


                    }else{
                        layer.msg(res.msg,{icon: 5,time:1000});
                    }

                },
                error: function (data) {
                    console.log(data.msg);
                },
            });



    });
</script>
</body>
</html>